﻿<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
    <meta charset="utf-8" />
    <!-- Mobile viewport optimization -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>GameSchool</title>
    <!---Font style sheet from Google Fonts --->
    <link href='http://fonts.googleapis.com/css?family=Press+Start+2P|Audiowide|Nosifer' rel='stylesheet' type='text/css'>

	<!-- Respond.js for responsive support in old browsers (IE... as usual) -->
    <link href="@Url.Content("~/Content/css/style.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/css/normalize.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("/Content/css/12col.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/css/fab4.css")" rel="stylesheet" type="text/css" />
    <!-- 
TO USE LESS WITHOUT A COMPILER, UNCOMMENT THIS AND DELETE THE PRECEEDING LINK TO 'style.css'

	<link rel="stylesheet/less" type="text/css" href="less/style.less" />
	<script src="js/libs/less.min.js" type="text/javascript"></script>
-->
	
<!-- HTML5 SHIV FOR OLD IE COMPATIBILITY (ITS EASIER TO USE THAN MODERNIZR) -->
	<!--[if lt IE 9]>
	<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->

<!-- Add a .gradient class to any element using CSS3 gradients for IE9 SVG full-stop gradient support -->
	<!--[if gte IE 9]>
  <style type="text/css">
    .gradient { filter: none; }
  </style>
<![endif]-->
</head>
<body>
    <header class="container">
		        <section class="one-half">
                            <section id="logo"><h1 class="insetType"><a href="/Home/">Gameschool</a></h1></section>
                    </section>
		            <section class="one-half last">

                    </section>
    </header>
<section id="wrapper" class="container">
    <nav>
         <ul id="nav">
            <li>
		        <a href="/Home/">Heim</a>
	        </li>
        	<li>
            
		        <a href="#">Fréttir</a>	
                    <ul id="newsMenu"><!--LIST GENERATED BY JAVASCRIPT--></ul>	
	        </li>
	        <li>
		        <a href="#">Áfangar</a>
            		<ul id="courses"><!--LIST GENERATED BY JAVASCRIPT--></ul>
			        
	        </li>           
	        <li>
		        <a href="#">Námsefni</a>
                    <ul id="VANTAR"><!--LIST GENERATED BY JAVASCRIPT--></ul>
	        </li>	
</ul><!--END NAV MENU-->
<text>Velkomin(n), <strong>@Html.ActionLink(Context.User.Identity.Name, "Profile", "User")</strong>![ @Html.ActionLink("Útskrá", "LogOff", "Account") ]</text>
        </nav>
	<section class="container" id="bodycontainer">
		<section class="row" id="maincontent">
			<section class="three-quarters" id="contentsection">
         
               @RenderBody()
			</section>
			<section id="usersection" class="container one-quarter last">
            @{
                if (User.IsInRole("Admin"))
                {
                    <h3>Stjórnborð</h3>
                   <hr style="margin: 0.1em 0;" />
                <ul class="controlPanel">
                   <li>@Html.ActionLink("Fréttayfirlit", "NewsList", "News")</li>
                   <li>@Html.ActionLink("Bæta við frétt", "Create", "News")</li>
                   <hr style="margin: 0.1em 0;" />
                   <li>@Html.ActionLink("Bæta við notanda", "Create", "Account")</li>
                   <li>@Html.ActionLink("Breyta notendum", "Edit", "Account")</li>
                   <hr style="margin: 0.1em 0;" />
                   <li>@Html.ActionLink("Nýr áfangi", "CreateCourse", "Course")</li>
                   <li>@Html.ActionLink("Bæta nemanda í áfanga", "AddUserToCourse", "Course")</li>                
                   </ul>
                   
                }
                
                else
                {
				    <h3>Stigin þín</h3>
				    <ul class="courselistPanel">
                        <div id="courses2"></div>
                    </ul>                    
                }
                }
                


			</section>
		</section>
	</section>
</section><!--- wrapper end --->
    <footer class="container">
        <section class="one-third">
		<p>Fab4 Productions &copy 2012</p>
		<p>|</p>
		<p>Fab4Productions.com</p>
		<p>|</p>
		<p>+354 5885522</p>
		</section>
		<section class="two-thirds last" id="social"><p>Facebook</p><p>Twitter</p><p>Taggalicio.us</p></section>
    </footer>


<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if necessary -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
 <script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery.templates/beta1/jquery.tmpl.min.js"></script>
<script>window.jQuery || document.write('<script src="js/libs/jquery1.6.4.min.js">\x3C/script>')</script>
<script src="@Url.Content("~/Content/js/fab4.js")" type="text/javascript"></script>
<!--- We need to add the links to this shizniit --->
@RenderSection("FooterScript", false) 
</body>
</html>
